package com.wish.thriftclient.domain;

import com.facebook.swift.codec.ThriftField;
import com.facebook.swift.codec.ThriftStruct;
import lombok.Data;

/**
 * 订单实体domain对象
 *
 * @author tantexian
 * @since 2017/9/27
 */
@ThriftStruct
@Data
public class OrderDO {
    /**
     * 订单id
     */
    @ThriftField(value = 1, requiredness = ThriftField.Requiredness.REQUIRED)
    public Long id;
    /**
     * 订单名字
     */
    @ThriftField(value = 2, requiredness = ThriftField.Requiredness.OPTIONAL)
    public String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
